package com.hundunjiang.CommonServer.client;

import com.hundunjiang.CommonServer.domain.UserDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("blog-phone-server")
@Component
public interface BlogPhoneClient {

    @GetMapping("/blog-phone/loadByUsername")
    UserDTO loadUserByUsername(@RequestParam String username);
}
